package com.gang.utils;

import com.spire.doc.Document;
import com.spire.doc.FileFormat;
import com.spire.pdf.PdfDocument;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.text.PDFTextStripper;

import java.io.File;

public class GetPDF {
    public static void get(String path,String topath) {
        Document document = new Document();
        document.loadFromFile(path);


        document.saveToFile(topath, FileFormat.PDF);
    }

}